//设置坐标函数用行（row）列(col)表达
function Point(row,col) {
    this.row=row;
    this.col=col;
}
//黑棋
function BlackQi(point,el) {
    this.Point=point;//坐标
    this.Element=el;//黑棋div
    this.draw=function () {
        this.Element.style.backgroundColor="aqua";
    }
}
//创建格子
this.createDiv=function () {
    this.xiaQiZhe=true;
    var w=getComputedStyle(this.element).width;//找到棋盘的宽度
    w=parseInt(w);
    this.width=parseInt(w/this.row);//得到每个格子的宽度
    for(var i=0;i<this.row;i++){//创建行
        for (var j=0;j<this.column;j++){
            var div=document.createElement("div");
            div.className="gezi";
            div.style.width=this.width+"px";
            div.style.height=this.width+"px";
            div.style.border="1px,solid black";
            div.style.boxSizing="border-box";
            div.style.float="left";
            this.element.appendChild(div);
            this.getZis.push(div);
        }
    }
}